<head th:fragment="common">
	<title th:text="${title}">hello</title>
	<link rel="shortcut icon" th:href="@{/favicon.ico}" type="image/x-icon" />
	<link rel="stylesheet" th:href="@{/element/index.css}">
	<link rel="stylesheet" th:href="@{/assets/css/font.css}">
	<link rel="stylesheet" th:href="@{/assets/icon-plus/iconfont.css}">
	<script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
	<script type="text/javascript" th:src="@{/js/vue.min.js}"></script>
	<script type="text/javascript" th:src="@{/js/syUtil.js}"></script>
	<script type="text/javascript" th:src="@{/element/index.js}"></script>
	<script type="text/javascript" th:src="@{/layer/layer.js}"></script>
	<!-- promise ������ ������ע�� -->
<!-- 	<script src = "https://cdn.polyfill.io/v2/polyfill.min.js"></script> -->
	<script th:inline="javascript">
	var staticURL=[[${#httpServletRequest.getContextPath()}]],dynamicURL=[[@{/}]],httpURL=[[@{${application.httpURL}}]];
	Vue.mixin({
		created: function () {
			this.checkToken();
		},
		methods:{
			checkToken:function () {
				if(window.location.href.indexOf("/login")>0){
					return;
				}
				$.ajax({url :'/auth/check_token',
					success : function(res) {
						console.log("/auth/check_token",res);
						if(!res.success){
							window.location.href=staticURL+'/login'
						}
					}
				});
			}
		}

	});
	</script>
</head>